package com.maxd.service.selfWXPay;

import java.math.BigDecimal;
import java.util.Map;

public interface SelfWXService {

    /**
     * 微信支付
     * @param ordersId
     * @param type
     * @return
     * @throws Exception
     */
    Map doUnifiedOrder(Long ordersId, Integer type, Long userId) throws Exception;

    Map doUnifiedOrderCart(String payNum, Integer type, BigDecimal payMoney,Long userId) throws Exception;

    /**
     * 支付回调
     * @param resXml
     * @return
     */
    String payBack(String resXml,Integer type);

    String payBackCart(String resXml,Integer type);

    //退款
    boolean refund(Long ordersId);

}